#include <iostream>

class Base
{
public:
    int m_A;
protected:
    int m_B;
private:
    int m_C;
};

class Son : public Base
{
public:
    int m_D;
};

void test01()
{
    // 父类的所有非静态属性都会被子类继承
    std::cout << sizeof(Son) << std::endl;
}

int main()
{
    test01();
    return 0;
}